package com.guoxue.service;

import java.util.List;

import com.guoxue.domain.PlanProgressVo;

public interface IPlanProgressService {

	public List<PlanProgressVo> getUserPlans(int id);

	public PlanProgressVo getPlanByUserAndPlanId(int id, int planId);

	public void savePlan(PlanProgressVo plan);

	public List<PlanProgressVo> getUserPlansByPlanId(int id, int beginPlanId, int endPlanId);

	public int getReadersCount(int id, int begin, int end);
	//按用户id以及计划id获取对应计划进度
	public PlanProgressVo getUserPlanByUidAndPlanId(int id, int planId);
	/**
	 * 
	 * @Description: 按轮数获取当前该轮数计划人数
	 * @param:
	 * @author:  
	 */
	public long getCount(int planId);
	
	/**
	 * 
	 * @Description: 获取大于等于当前轮数用户
	 * @param:
	 * @author:  
	 */
	public long getCompleteCount(int currentReadRound,int planId);
	/**
	 * 获取最后一次提交记录
	 * @param id
	 * @return
	 */
	public PlanProgressVo getLastCommit(int id);

}
